﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;

namespace SinsenWeb.Helpers
{
    public static class DateTimeExtension
    {

        public static string GetFormatted(this DateTime? date)
        {
            if(!date.HasValue)
            {
                return "";
            }
            return date.Value.ToString("dd/MM-yyyy", CultureInfo.InvariantCulture);
        }

    }
}
